<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/11
 * Time: 14:25
 */
//配置管理器
class ConfigManager {

    public static function getValue($key,$default){

        $config = require APP_PATH."/config/config.php"; //加载配置

        return isset($config[$key]) && $config[$key] ? $config[$key] : $default;
    }

}